package com.firefly.admin.common.service.impl;

import com.firefly.admin.common.entity.FyBatchOperationDetail;
import com.firefly.admin.common.mapper.FyBatchOperationDetailMapper;
import com.firefly.admin.common.service.FyBatchOperationDetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class FyBatchOperationDetailServiceImpl implements FyBatchOperationDetailService {

    @Autowired
    private FyBatchOperationDetailMapper fyBatchOperationDetailMapper;

    /**
     * 新增批量操作详情
     *
     * @param batchOperationDetail 批量操作详情
     * @param <T>                  操作对象
     */
    @Override
    public <T> void save(FyBatchOperationDetail<T> batchOperationDetail) {
        fyBatchOperationDetailMapper.insert(batchOperationDetail);
    }
}
